//
//  ReadSortCollectionViewCell.m
//  项目
//
//  Created by 关雷 on 15-1-4.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "ReadSortCollectionViewCell.h"

@implementation ReadSortCollectionViewCell
- (void)dealloc
{
    [_imgV release];
    [_lable release];
    [_backimgV release];
    [_myImgV release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backimgV = [[UIImageView alloc] init];
        self.backimgV.frame = CGRectMake(0, 0, frame.size.width, frame.size.height);
        [_backimgV setImage:[UIImage imageNamed:@"read.png"]];
        _backimgV.layer.shadowColor = [[UIColor grayColor] CGColor];
        _backimgV.layer.shadowOffset = CGSizeMake(5, 2);
        _backimgV.layer.shadowOpacity = 1;
        [self.contentView addSubview:_backimgV];
        [_backimgV release];
        
        self.myImgV = [[UIImageView alloc] init];
        self.myImgV.frame = CGRectMake(0, 0, frame.size.width, frame.size.height - 30);
        [_backimgV addSubview:_myImgV];
        [_myImgV release];
        
        self.imgV = [[UIImageView alloc] init];
        self.imgV.frame = CGRectMake(0, 0, frame.size.width, frame.size.height - 30);
        [_backimgV addSubview:_imgV];
        [_imgV release];
        
        self.lable = [[UILabel alloc] init];
        self.lable.frame = CGRectMake(5, self.imgV.frame.size.height, frame.size.width - 20, 30);
        self.lable.font = [UIFont systemFontOfSize:12.0f];
        [_backimgV addSubview:_lable];
        [_lable release];
    }
    return self;
}
@end
